<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>校园Packer</title>
    <link rel="stylesheet" href="/css/lib/bootstrap.min.css">
    <link rel="stylesheet" href="/css/app.css">
    
  </head>
  <body>
    <header>
      <div class="clearfix">
        <div class="headerTitle">我校食堂后台管理系统</div><a class="btn btn-warning pull-right logout">注销</a><span class="pull-right headerText">欢迎您，<span id="role"></span><span id="name"></span></span>
      </div>
    </header>
    <div class="sidebar">
      <ul>
        <li class="toggleUl"><a>权限管理</a>
          <ul>
            <li class="subItem"><a href="/views/manager.html">查看管理员</a></li>
            <li class="subItem"><a href="/views/master.html">查看堂主</a></li>
            <li class="subItem"><a href="/views/courier.html">查看配送员</a></li>
          </ul>
        </li>
        <li class="toggleUl"><a>学校管理</a>
          <ul>
            <li class="subItem"><a href="/views/school_manage.html">学校管理</a></li>
            <li class="subItem"><a href="/views/canteen_manage.html">食堂管理</a></li>
          </ul>
        </li>
        <li class="toggleUl"><a>商品管理</a>
          <ul>
            <li class="subItem"><a href="/views/goods_manage.html">商品管理</a></li>
            <li class="subItem"><a href="/views/import_goods.html">导入商品</a></li>
          </ul>
        </li>
        <li class="toggleUl"><a>文件管理</a>
        </li>
        <li class="toggleUl"><a>财务管理</a>
        </li>
        <li class="toggleUl"><a>交易管理</a>
          <ul>
            <li class="subItem"><a href="/views/trade_manage.html">查看交易</a></li>
            <li class="subItem"><a href="/views/import_trade.html">导入交易</a></li>
          </ul>
        </li>
        <li class="toggleUl"><a href="/views/delivery_manage.html">发货管理</a>
        </li>
        <li class="toggleUl"><a href="/views/user_query.html">用户查询</a>
        </li>
        <li class="toggleUl"><a href="/views/trade_query.html">交易查询</a>
        </li>
        <li class="toggleUl"><a href="/views/goods_query.html">商品查询</a>
        </li>
        <li class="toggleUl"><a href="/views/order_query.html">订单查询</a>
        </li>
      </ul>
    </div>
    <title>校园Packer</title>
    <div class="rightSide">
      <div class="container-fluid">
        <div class="row">
          <div class="col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-2">
            <form id="addSchoolForm" class="form-horizontal">
              <div class="form-group">
                <label class="col-sm-3 text-right control-label"><span class="text-danger">*</span>省</label>
                <div class="col-sm-9">
                  <select id="provinceSelect" name="province_id" required class="form-control"></select>
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-3 text-right control-label"><span class="text-danger">*</span>市</label>
                <div class="col-sm-9">
                  <select id="citySelect" name="city_id" required class="form-control"></select>
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-3 text-right control-label"><span class="text-danger">*</span>区</label>
                <div class="col-sm-9">
                  <select id="districtSelect" name="area_id" required class="form-control"></select>
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-3 text-right control-label"><span class="text-danger">*</span>学校名称</label>
                <div class="col-sm-9">
                  <input type="text" id="school_name" name="school_name" required class="form-control">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-3 text-right control-label"><span class="text-danger">*</span>学校地址</label>
                <div class="col-sm-9">
                  <input type="text" id="school_address" name="school_adress" required class="form-control">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-3 text-right control-label"><span class="text-danger">*</span>学校经度</label>
                <div class="col-sm-9">
                  <input type="number" id="school_longtitude" name="coord_lng" required class="form-control">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-3 text-right control-label"><span class="text-danger">*</span>学校纬度</label>
                <div class="col-sm-9">
                  <input type="number" id="school_altitude" name="coord_lat" required class="form-control">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-3 text-right control-label"><span class="text-danger">*</span>有赞id</label>
                <div class="col-sm-9">
                  <input type="text" id="app_id" name="appid" required class="form-control">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-3 text-right control-label"><span class="text-danger">*</span>有赞秘钥</label>
                <div class="col-sm-9">
                  <input type="text" id="app_secret" name="appsecret" required class="form-control">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-3 text-right control-label"><span class="text-danger">*</span>有赞门店id</label>
                <div class="col-sm-9">
                  <input type="text" id="youzan_store_id" name="youzan_store_id" required class="form-control">
                </div>
              </div>
              <div class="form-group text-center">
                <hr>
                <div class="col-sm-offset-3"><a onclick="history.go(-1)" class="btn btn-default">返回</a><a id="addSchool" class="btn btn-success">确定</a></div>
              </div>
            </form>
          </div>
        </div>
      </div>
    </div>
    <script src="/js/lib/require.js" data-main="/js/add_school"></script>
    <div id="noticeModal" class="modal fade">
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-body">
            <h4 id="noticeMsg"></h4>
          </div>
          <div class="modal-footer">
            <button type="button" data-dismiss="modal" class="btn btn-primary">确定</button>
          </div>
        </div>
      </div>
    </div>
    <div id="confirmModal" class="modal fade">
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-body">
            <h4 id="confirmMsg"></h4>
          </div>
          <div class="modal-footer">
            <button type="button" id="confirmBtn" class="btn btn-primary">确认</button>
            <button type="button" data-dismiss="modal" class="btn btn-default">取消</button>
          </div>
        </div>
      </div>
    </div>
    <div id="sendModal" aria-hidden="true" data-backdrop="data-backdrop" class="modal fade">
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-body">
            <h4 id="sendMsg"></h4>
          </div>
          <div class="modal-footer">
            <button type="button" id="sendConfirm" class="btn btn-primary">确认</button>
            <button id="cancelOrder" type="button" data-dismiss="modal" class="btn btn-default">取消</button>
          </div>
        </div>
      </div>
    </div>
    <script src="/js/index.js"></script>
  </body>
</html>